package com.hns.can.mainte.entity;

import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hns.can.common.entity.BaseEntity;
import com.hns.tool.pub.DateTool;

/**
 * 车辆充电信息实体
 * @author:zhangzq
 * @email:
 * @version Revision 2.0.0
 */
@Entity
@Table(name = "T_COMM_CAR_CHARGE_INFO")
public class CommCarChargeInfoEntity extends BaseEntity implements java.io.Serializable {
    
    @Id
    @Column(name = "RCRD_ID")
    private String     rcrdId;
    @Column(name = "CORP_ID")
    private String     corpId;
    @Column(name = "ORGAN_ID")
    private String     organId;
    @Column(name = "LINE_ID")
    private String     lineId;
    @Column(name = "CAR_ID")
    private String     carId;
    @Column(name = "DRV_ID")
    private String     drvId;
    @Column(name = "RCRD_TIME")
    private String     rcrdTime;
    @Column(name = "RCRD_JRNL_NO")
    private String     rcrdJrnlNo;
    @Column(name = "EQMT_CODE")
    private String     eqmtCode;
    @Column(name = "LIC_PLT_NO")
    private String     licPltNo;
    @Column(name = "LINE_CODE")
    private String     lineCode;
    @Column(name = "CHARGE_BEGIN_TIME")
    private String     chargeBeginTime;
    @Column(name = "CHARGE_END_TIME")
    private String     chargeEndTime;
    @Column(name = "CHARGE_BEGIN_SOC_VALUE")
    private BigDecimal chargeBeginSocValue;
    @Column(name = "CHARGE_END_SOC_VALUE")
    private BigDecimal chargeEndSocValue;
    @Column(name = "CHARGEING_TOTAL_MILE")
    private BigDecimal chargeingTotalMile;
    @Column(name = "BEGIN_LO_LGT")
    private Double     beginLoLgt;
    @Column(name = "BEGIN_LO_LTT")
    private Double     beginLoLtt;
    @Column(name = "BEGIN_LO_DRC")
    private BigDecimal beginLoDrc;
    @Column(name = "END_LO_LGT")
    private Double     endLoLgt;
    @Column(name = "END_LO_LTT")
    private Double     endLoLtt;
    @Column(name = "END_LO_DRC")
    private BigDecimal endLoDrc;
    @Column(name = "GEN_TIME")
    private Timestamp  genTime;
    @Column(name = "RESERVED_FIELD_1")
    private BigDecimal reservedField1;
    @Column(name = "RESERVED_FIELD_2")
    private BigDecimal reservedField2;
    @Column(name = "RESERVED_FIELD_3")
    private BigDecimal reservedField3;
    @Column(name = "RESERVED_FIELD_4")
    private BigDecimal reservedField4;
    @Column(name = "RESERVED_FIELD_5")
    private String     reservedField5;
    @Column(name = "RESERVED_FIELD_6")
    private String     reservedField6;
    @Column(name = "RESERVED_FIELD_7")
    private String     reservedField7;
    @Column(name = "RESERVED_FIELD_8")
    private String     reservedField8;
    @Column(name = "CHARGE_NUM")
    private BigDecimal     chargeNum;
    @Column(name = "CHARGE_BEF_ELT_VALUE")
    private BigDecimal     chargeBefEltValue;
    @Column(name = "CHARGE_AFT_ELT_VALUE")
    private BigDecimal     chargeAftEltValue;
    @Transient
    private String bteryMaterialType;
    @Transient
    private String lineName;
    @Transient
    private String organName;
    @Transient
    private BigDecimal avgSpeed;
    @Transient
    private BigDecimal totalMile;
    @Transient
    private BigDecimal socDiffValue;
    @Transient
    private String carType;
    
    @Transient
    private BigDecimal durationMile;
    @Transient
    private String bteryTypeString;
    @Transient
    private BigDecimal preChargeEndSocValue;
    @Transient
    private BigDecimal lasting;

    //单次充电时长
    @Transient
    public String runTime;
    
//    @Transient
//    private String lastingDetail;

    
    public String getLastingDetail() {
        if(this.lasting != null){
            return DateTool.transformTimeForTimeUnit(this.getLasting(),"HH'MI'SS''");
        }else{
            return "-";
        }
    }
    
//    public String getLastingDetail() {
//		return lastingDetail;
//	}
//
//	public void setLastingDetail(String lastingDetail) {
//		this.lastingDetail = lastingDetail;
//	}

	public String getRcrdId() {
        return this.rcrdId;
    }
    
    public void setRcrdId(String rcrdId) {
        this.rcrdId = rcrdId;
    }
    
    
    public String getCorpId() {
        return this.corpId;
    }
    
    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }
    
    
    public String getOrganId() {
        return this.organId;
    }
    
    public void setOrganId(String organId) {
        this.organId = organId;
    }
    
    
    public String getLineId() {
        return this.lineId;
    }
    
    public void setLineId(String lineId) {
        this.lineId = lineId;
    }
    
    
    public String getCarId() {
        return this.carId;
    }
    
    public void setCarId(String carId) {
        this.carId = carId;
    }
    
    
    public String getDrvId() {
        return this.drvId;
    }
    
    public void setDrvId(String drvId) {
        this.drvId = drvId;
    }
    
    
    public String getRcrdTime() {
        return this.rcrdTime;
    }
    
    public void setRcrdTime(String rcrdTime) {
        this.rcrdTime = rcrdTime;
    }
    
    
    public String getRcrdJrnlNo() {
        return this.rcrdJrnlNo;
    }
    
    public void setRcrdJrnlNo(String rcrdJrnlNo) {
        this.rcrdJrnlNo = rcrdJrnlNo;
    }
    
    
    public String getEqmtCode() {
        return this.eqmtCode;
    }
    
    public void setEqmtCode(String eqmtCode) {
        this.eqmtCode = eqmtCode;
    }
    
    
    public String getLicPltNo() {
        return this.licPltNo;
    }
    
    public void setLicPltNo(String licPltNo) {
        this.licPltNo = licPltNo;
    }
    
    
    public String getLineCode() {
        return this.lineCode;
    }
    
    public void setLineCode(String lineCode) {
        this.lineCode = lineCode;
    }
    
    
    public String getChargeBeginTime() {
        return this.chargeBeginTime;
    }
    
    public void setChargeBeginTime(String chargeBeginTime) {
        this.chargeBeginTime = chargeBeginTime;
    }
    
    
    public String getChargeEndTime() {
        return this.chargeEndTime;
    }
    
    public void setChargeEndTime(String chargeEndTime) {
        this.chargeEndTime = chargeEndTime;
    }
    
    
    public BigDecimal getChargeBeginSocValue() {
        return this.chargeBeginSocValue;
    }
    
    public void setChargeBeginSocValue(BigDecimal chargeBeginSocValue) {
        this.chargeBeginSocValue = chargeBeginSocValue;
    }
    
    
    public BigDecimal getChargeEndSocValue() {
        return this.chargeEndSocValue;
    }
    
    public void setChargeEndSocValue(BigDecimal chargeEndSocValue) {
        this.chargeEndSocValue = chargeEndSocValue;
    }
    
    
    public BigDecimal getChargeingTotalMile() {
        return this.chargeingTotalMile;
    }
    
    public void setChargeingTotalMile(BigDecimal chargeingTotalMile) {
        this.chargeingTotalMile = chargeingTotalMile;
    }
    
    
    public Double getBeginLoLgt() {
        return this.beginLoLgt;
    }
    
    public void setBeginLoLgt(Double beginLoLgt) {
        this.beginLoLgt = beginLoLgt;
    }
    
    
    public Double getBeginLoLtt() {
        return this.beginLoLtt;
    }
    
    public void setBeginLoLtt(Double beginLoLtt) {
        this.beginLoLtt = beginLoLtt;
    }
    
    
    public BigDecimal getBeginLoDrc() {
        return this.beginLoDrc;
    }
    
    public void setBeginLoDrc(BigDecimal beginLoDrc) {
        this.beginLoDrc = beginLoDrc;
    }
    
    
    public Double getEndLoLgt() {
        return this.endLoLgt;
    }
    
    public void setEndLoLgt(Double endLoLgt) {
        this.endLoLgt = endLoLgt;
    }
    
    
    public Double getEndLoLtt() {
        return this.endLoLtt;
    }
    
    public void setEndLoLtt(Double endLoLtt) {
        this.endLoLtt = endLoLtt;
    }
    
    
    public BigDecimal getEndLoDrc() {
        return this.endLoDrc;
    }
    
    public void setEndLoDrc(BigDecimal endLoDrc) {
        this.endLoDrc = endLoDrc;
    }
    
    
    public Timestamp getGenTime() {
        return this.genTime;
    }
    
    public void setGenTime(Timestamp genTime) {
        this.genTime = genTime;
    }
    
    
    public BigDecimal getReservedField1() {
        return this.reservedField1;
    }
    
    public void setReservedField1(BigDecimal reservedField1) {
        this.reservedField1 = reservedField1;
    }
    
    
    public BigDecimal getReservedField2() {
        return this.reservedField2;
    }
    
    public void setReservedField2(BigDecimal reservedField2) {
        this.reservedField2 = reservedField2;
    }
    
    
    public BigDecimal getReservedField3() {
        return this.reservedField3;
    }
    
    public void setReservedField3(BigDecimal reservedField3) {
        this.reservedField3 = reservedField3;
    }
    
    
    public BigDecimal getReservedField4() {
        return this.reservedField4;
    }
    
    public void setReservedField4(BigDecimal reservedField4) {
        this.reservedField4 = reservedField4;
    }
    
    
    public String getReservedField5() {
        return this.reservedField5;
    }
    
    public void setReservedField5(String reservedField5) {
        this.reservedField5 = reservedField5;
    }
    
    
    public String getReservedField6() {
        return this.reservedField6;
    }
    
    public void setReservedField6(String reservedField6) {
        this.reservedField6 = reservedField6;
    }
    
    
    public String getReservedField7() {
        return this.reservedField7;
    }
    
    public void setReservedField7(String reservedField7) {
        this.reservedField7 = reservedField7;
    }
    
    
    public String getReservedField8() {
        return this.reservedField8;
    }
    
    public void setReservedField8(String reservedField8) {
        this.reservedField8 = reservedField8;
    }

    public String getBteryMaterialType() {
        return bteryMaterialType;
    }

    public void setBteryMaterialType(String bteryMaterialType) {
        this.bteryMaterialType = bteryMaterialType;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public String getOrganName() {
        return organName;
    }

    public void setOrganName(String organName) {
        this.organName = organName;
    }

    public BigDecimal getAvgSpeed() {
        return avgSpeed;
    }

    public void setAvgSpeed(BigDecimal avgSpeed) {
        this.avgSpeed = avgSpeed;
    }

    public BigDecimal getTotalMile() {
        return totalMile;
    }

    public void setTotalMile(BigDecimal totalMile) {
        this.totalMile = totalMile;
    }

    public BigDecimal getSocDiffValue() {
        return socDiffValue;
    }

    public void setSocDiffValue(BigDecimal socDiffValue) {
        this.socDiffValue = socDiffValue;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public BigDecimal getDurationMile() {
        return durationMile;
    }

    public void setDurationMile(BigDecimal durationMile) {
        this.durationMile = durationMile;
    }

    public String getBteryTypeString() {
        return bteryTypeString;
    }

    public void setBteryTypeString(String bteryTypeString) {
        this.bteryTypeString = bteryTypeString;
    }

	public BigDecimal getPreChargeEndSocValue() {
		return preChargeEndSocValue;
	}

	public void setPreChargeEndSocValue(BigDecimal preChargeEndSocValue) {
		this.preChargeEndSocValue = preChargeEndSocValue;
	}

	public BigDecimal getLasting() {
		return lasting;
	}

	public void setLasting(BigDecimal lasting) {
		this.lasting = lasting;
	}

    public BigDecimal getChargeNum() {
        return chargeNum;
    }

    public void setChargeNum(BigDecimal chargeNum) {
        this.chargeNum = chargeNum;
    }

    public BigDecimal getChargeBefEltValue() {
        return chargeBefEltValue;
    }

    public void setChargeBefEltValue(BigDecimal chargeBefEltValue) {
        this.chargeBefEltValue = chargeBefEltValue;
    }

    public BigDecimal getChargeAftEltValue() {
        return chargeAftEltValue;
    }

    public void setChargeAftEltValue(BigDecimal chargeAftEltValue) {
        this.chargeAftEltValue = chargeAftEltValue;
    }

    public String getRunTime() {
        return runTime;
    }

    public void setRunTime(String runTime) {
        this.runTime = runTime;
    }
}
